package com.truyentranh.network;

import java.util.ArrayList;
import java.util.Vector;

import com.truyentranh.utils.Logger;

/**
 * 
 * @author thanhlnh
 */
public class APIRequestWorker {

	private static APIRequestWorker mInstance = null;
	
	private APIRequestWorker() {
		
	}

	public static APIRequestWorker getInstance() {
		if (mInstance == null) {
			mInstance = new APIRequestWorker();
		}
		return mInstance;
	}

	public void addAPIRequest(Request request) {
		RequestBackgroundWorker.queueRequest(request);
	}

	public void clearAllRequests() {
		RequestBackgroundWorker.clearOldRequests();
	}
}
